// 签名
import _bale from '../utils/package.js'
// 获取不同的接口地址
import { SSO_API, SHARE_API } from '../config/index.js'
import { Service } from '../utils/server.js'
class loginModel extends Service {
  wechatSignUp(params) {
    // 后台注册登录
    return this.postRequest(SSO_API + '/vipUser/sharelogin', {
      data: _bale('sharelogin', params)
    })
  }
  // getSpecial(params) {
  //   return this.postRequest(SHARE_API + '/applietLazy/selectSpecialGoods', {
  //     data: _bale('selectSpecialGoods', params)
  //   })
  // }
  signIn() {
    return this.postRequest(SSO_API + '/vipUser/get_info', {
      data: _bale('get_info')
    })
  }
  //获取用户个人信息
  getVipInfo(params) {
    return this.postRequest(SSO_API + '/vipUser/get_info', {
      data: _bale('get_info', params)
    })
  }

}
export { loginModel }
